package necer.ncalendardemo.activity;

import android.app.Application;
import android.util.Log;

import com.tencent.smtt.sdk.QbSdk;
import com.tencent.smtt.sdk.TbsListener;

public class App extends Application{
    @Override
    public void onCreate(){
        super.onCreate();
        QbSdk.initX5Environment(this,null);
     //   ExceptionHandler.getInstance().initConfig(this);
        QbSdk.preInit(this, new QbSdk.PreInitCallback(){
            @Override
            public void onCoreInitFinished(){
            }

            @Override
            public void onViewInitFinished(boolean b){
                if(b==true){
                    Log.e("view","可用");
                }else {
                    Log.e("view","不可用");
                }
            }
        });
        QbSdk.setTbsListener(new TbsListener(){
            @Override
            public void onDownloadFinish(int i){
                Log.e("view","onDownloadFinish"+i);
            }

            @Override
            public void onInstallFinish(int i){
                Log.e("view","onInstallFinish"+i);
            }

            @Override
            public void onDownloadProgress(int i){
                Log.e("view","onDownloadProgress"+i);
            }
        });

    }

}
